package edu.ccut.saturn.authority.core.dept;

import edu.ccut.saturn.component.DefaultComponent;
import edu.ccut.saturn.component.IParameterContext;

public class IsNull extends DefaultComponent {
	@Override
	public void execute(IParameterContext parameterContext) throws Exception {
		Object obj = parameterContext.getParameterValue(0);
		boolean isNull = false;
		if(obj == null){
			isNull = true;
		}
		parameterContext.setParameter(1, isNull);
	}
}